package test;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import expression.*;

public class JonathanDiDonatoPETest {

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}
	
	@Test
	public void testOne(){
		assertEquals(9512, PostfixEvaluator.eval("7 112 3 4 ^ * + 5 87 * + 4 2 / -"));
		assertEquals(-418, PostfixEvaluator.eval("5 3 + 4 96 9 - * - 3 - 1 75 * -"));
		assertEquals(354, PostfixEvaluator.eval("4 200 + 3 51 1 -  * +"));
		assertEquals(11154, PostfixEvaluator.eval("1 21 + 3 44 5 3 ^ + * *"));
		assertEquals(19, PostfixEvaluator.eval("1 45 * 2 2 / * 17 3 - - 9 + 21 -"));
	}

}
